import Vue from 'vue'
import Vuex from 'vuex'
import { UserModulesState } from './modules/userModules'
import { CommonModulesState } from './modules/commonModules'

Vue.use(Vuex)

export interface IRootState {
  user: UserModulesState,
  common: CommonModulesState
}

// Declare empty store first, dynamically register all modules later.
export default new Vuex.Store<IRootState>({})
